cmake_minimum_required(VERSION 3.18)
project(custom_op_dequan LANGUAGES CXX)

set(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations")
# set(CMAKE_CXX_FLAGS "-Wno-error=deprecated-declarations -Wno-deprecated-declarations ")

set(CUDA_TOOKIT_ROOT_DIR /usr/local/cuda10-cudnn7.5)
find_package(CUDA 10.0 EXACT REQUIRED)

set(ONNXRUNTIME_INCLUDE_DIR /mnt/e/project/onnxruntime-linux-x64-gpu-1.15.1/include)
cuda_add_library(${PROJECT_NAME} SHARED dequan_with_cuda.cpp cuda_kernel.cu cuda_kernel.cuh)
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${ONNXRUNTIME_INCLUDE_DIR})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)

